package com.jiyun.feign;

import com.jiyun.vo.CatalogDto;
import com.jiyun.vo.CourseDto;
import com.jiyun.vo.ResultResopnse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/23 17 28
 * */
@FeignClient(value = "day09Course")
public interface FeignCourse {
    @GetMapping("course/findCourseAll")
    public ResultResopnse findCourse();
    @GetMapping("course/findCourseTime")
    public ResultResopnse findCourseTime();
    @PostMapping("course/findCourse")
    public ResultResopnse findCourse(@RequestBody CourseDto courseDto);
    @GetMapping("course/findLabel")
    public ResultResopnse findLabel();
    @GetMapping("course/findCourseId")
    public ResultResopnse findCourseId(@RequestParam("id") Integer id);
    @PostMapping("catalog/findCatalog")
    public ResultResopnse findCatalog(CatalogDto catalogDto);
    @GetMapping("catalog/findCatalogSize")
    public ResultResopnse findCatalogSize();
    @GetMapping("catalog/toAdd")
    public ResultResopnse toAdd(@RequestParam("id") Integer id,@RequestParam("courseId") Integer courseId);
    @GetMapping("catalog/findCatalogCourse")
    public ResultResopnse findCatalogCourse(@RequestParam("courseId") Integer courseId);

}
